package com.chushouya.order.dto.api.clerk.action;

import com.chushouya.order.constants.ClerkOrderActionEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@ApiModel("业务员自卖申请")
@Data
public class ClerkOrderSelfSaleRequestAction extends ClerkBaseAction {

    public ClerkOrderSelfSaleRequestAction() {
        super.setOrderAction(ClerkOrderActionEnum.REQUEST_SELF_SALE);
    }

    @ApiModelProperty("订单ID")
    @NotNull(message = "订单ID不能为空")
    private Long orderId;

    @ApiModelProperty("申请售出价")
    private BigDecimal salePrice;

    @ApiModelProperty("自卖申请备注")
    private String requestRemark;

    @ApiModelProperty("自卖图片凭证，至少两张图片。包含沟通聊天记录、向公司付款交易图片")
    @NotNull(message = "自卖图片凭证不能为空")
    private String settleImages;

}
